package com.woniuxy.commons.service;


import com.woniuxy.commons.entity.User;
import com.woniuxy.commons.utils.ResponseResult;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

import java.util.List;

@FeignClient(name = "user")
public interface UserService {


    @GetMapping("/user/findByRecord/{id}")
    public ResponseResult<User> findByRecord(@PathVariable(value="id") int id);

    @GetMapping("/user/findByName/{name}")
    public ResponseResult<User> findByName(@PathVariable(value="name") String name);
}
